ContentInfoCompat
Holds all the relevant data for a request to OnReceiveContentListener. This is a backward-compatible wrapper for the platform class ContentInfo.
Types
Link copied to clipboard
class Builder
Builder for ContentInfoCompat.
Link copied to clipboard
Flags to configure the insertion behavior.
Link copied to clipboard
Specifies the UI through which content is being inserted.
Properties
Link copied to clipboard
Flag requesting that the content should be converted to plain text prior to inserting.
Link copied to clipboard
Specifies that the operation was triggered by the app that contains the target view.
Link copied to clipboard
Specifies that the operation was triggered by the autofill framework.
Link copied to clipboard
Specifies that the operation was triggered by a paste from the clipboard (e.g.
Link copied to clipboard
Specifies that the operation was triggered by the drag/drop framework.
Link copied to clipboard
Specifies that the operation was triggered from the soft keyboard (also known as input method editor or IME).
Link copied to clipboard
Specifies that the operation was triggered by a result from a PROCESS_TEXT action in the selection menu.
Functions
Link copied to clipboard
Optional http/https URI for the content that may be provided by the IME.
Link copied to clipboard
open fun partition(@NonNull itemPredicate: Predicate<ClipData.Item>): Pair<ContentInfoCompat, ContentInfoCompat>
Partitions this content based on the given predicate.
open fun partition(@NonNull payload: ContentInfo, @NonNull itemPredicate: Predicate<ClipData.Item>): Pair<ContentInfo, ContentInfo>
Partitions content based on the given predicate.
Link copied to clipboard
Provides the ContentInfo represented by this object.
Link copied to clipboard
Provides a backward-compatible wrapper for ContentInfo.